﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/SubMaster.Master" AutoEventWireup="true" CodeBehind="WebFormDealersProducts.aspx.cs" Inherits="CustomersSuppliersWebApplication.WebFormDealersProducts" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTextBoxSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridResults" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <telerik:RadDockZone ID="RadDockZoneMiddle" runat="server" SkinID="RadDockZoneContent" CssClass="MinimumPageHeight">
        <telerik:RadDock ID="RadDockSearch" runat="server" Title="بحث" AllowedZones="RadDockZoneMiddle" SkinID="RadDockSearch" CssClass="MarginTop">
            <ContentTemplate>
                <div class="DivSearch FloatRight MarginTop">
                    <asp:Label ID="LabelSearch" runat="server" Text="بحث عام"></asp:Label>
                    <telerik:RadTextBox ID="RadTextBoxSearch" runat="server" SkinID="RadTextBoxSearch" OnTextChanged="RadTextBoxSearch_TextChanged"></telerik:RadTextBox>
                </div>
                <div class="Clear"></div>
            </ContentTemplate>
        </telerik:RadDock>

        <telerik:RadDock ID="RadDockResults" runat="server" Title="النتائج" AllowedZones="RadDockZoneMiddle" SkinID="RadDockResults" CssClass="MarginTop">
            <ContentTemplate>
                <div class="MarginTop">
                    <telerik:RadGrid ID="RadGridResults" runat="server" SkinID="RadGridPrimary" CellSpacing="0" GridLines="None" AutoGenerateColumns="False" ShowGroupPanel="True"
                        OnNeedDataSource="RadGridResults_NeedDataSource" OnItemCommand="RadGridResults_ItemCommand" OnInsertCommand="RadGridResults_InsertCommand" OnItemCreated="RadGridResults_ItemCreated"
                        OnItemDataBound="RadGridResults_ItemDataBound" OnUpdateCommand="RadGridResults_UpdateCommand" OnDeleteCommand="RadGridResults_DeleteCommand">
                        <ClientSettings>
                            <Selecting CellSelectionMode="None" />
                        </ClientSettings>
                        <MasterTableView DataKeyNames="ID" Name="Dealers_Products">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="RowNumber" DataType="System.Int32" Display="false" HeaderText="الرقم" ReadOnly="true" UniqueName="RowNumber">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ID" DataType="System.Guid" Display="False" HeaderText="الكود" ReadOnly="true" UniqueName="ID">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product_NameTotal" DataType="System.String" Display="true" EditFormColumnIndex="0" HeaderText="المنتج" ReadOnly="true" UniqueName="Product_NameTotal">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn Display="false" HeaderText="المنتج" UniqueName="Product_ID">
                                    <EditItemTemplate>
                                        <telerik:RadComboBox ID="RadComboBoxProducts" runat="server">
                                        </telerik:RadComboBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn Display="true" EditFormColumnIndex="1" HeaderText="مورد" UniqueName="Is_Supplier">
                                    <ItemTemplate>
                                        <telerik:RadButton ID="RadButtonIsSupplierDisplay" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" ReadOnly="true">
                                        </telerik:RadButton>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadButton ID="RadButtonIsSupplier" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox">
                                        </telerik:RadButton>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" CancelText="الغاء" EditText="تحرير" UniqueName="EditColumn" UpdateText="حفظ">
                                </telerik:GridEditCommandColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="40px" ConfirmDialogType="RadWindow" ConfirmText="هل انت متاكد من عملية الحذف ؟" ConfirmTitle="حذف" Text="حذف" UniqueName="DeleteColumn">
                                </telerik:GridButtonColumn>
                                <telerik:GridRowIndicatorColumn Resizable="True" Visible="true">
                                </telerik:GridRowIndicatorColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                </div>
            </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</asp:Content>
